
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>6.9使用FVM管理 · Flutter for Harmony教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="坚果派">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mind-maps/mindmaps.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="5.9鸿蒙版Flutter仓库变更.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"
        />
      </span>
      <span id="nickname"> breeze </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱 💕</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png" />
      <img
        id="alipay-code"
        src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.gitbook.com/" target="_blank">坚果派官网</a>
      </li><li>
        <a href="https://www.npmjs.com/package/package" target="_blank">ArkUI实战</a>
      </li><li>
        <a href="https://space.bilibili.com/480883651" target="_blank">元服务开发实践</a>
      </li><li>
        <a href="https://blog.51cto.com/jianguo" target="_blank">OpenHarmony应用开发</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    1.前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../坚果派介绍.html">
            
                <a href="../坚果派介绍.html">
            
                    
                    2.坚果派介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    3.Flutter与Dart介绍
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter3/3.1Flutter介绍.html">
            
                <a href="../chapter3/3.1Flutter介绍.html">
            
                    
                    3.1Flutter介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../chapter3/3.2Dart介绍.html">
            
                <a href="../chapter3/3.2Dart介绍.html">
            
                    
                    3.2Dart介绍
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    4.HarmonyOS/OpenHarmony与ArkTS介绍
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter4/4.1HarmonyOS">
            
                <span>
            
                    
                    4.1HarmonyOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../chapter4/4.2OpenHarmony.html">
            
                <a href="../chapter4/4.2OpenHarmony.html">
            
                    
                    4.2OpenHarmony
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../chapter4/4.3HarmonyOSNEXT.html">
            
                <a href="../chapter4/4.3HarmonyOSNEXT.html">
            
                    
                    4.3HarmonyOS NEXT
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../chapter4/4.4ArkTS语言 .html">
            
                <a href="../chapter4/4.4ArkTS语言 .html">
            
                    
                    4.4ArkTS语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../chapter4/4.5三者的差异 .md">
            
                <span>
            
                    
                    4.5三者的区别与联系
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    5.Flutter鸿蒙化
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    [5.1背景]
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" >
            
                <span>
            
                    
                    [5.2原理]
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chapter2/2.3Impeller渲染引擎.html">
            
                <a href="../chapter2/2.3Impeller渲染引擎.html">
            
                    
                    5.3Impeller渲染引擎
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    6.鸿蒙Flutter开发环境配置（windows与mac）
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="5.1windows环境配置.html">
            
                <a href="5.1windows环境配置.html">
            
                    
                    6.1windows环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="5.2mac环境配置.html">
            
                <a href="5.2mac环境配置.html">
            
                    
                    6.2 mac环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="5.6使用最新的fluttersdk配置开发环境.html">
            
                <a href="5.6使用最新的fluttersdk配置开发环境.html">
            
                    
                    6.3 使用 FlutterSDK 3.22.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="5.4第一个鸿蒙Flutter应用程序.html">
            
                <a href="5.4第一个鸿蒙Flutter应用程序.html">
            
                    
                    6.4第一个鸿蒙Flutter应用程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="5.5鸿蒙Flutter运行到HarmonyOS.md">
            
                <span>
            
                    
                    6.5运行到多平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="5.7OpenHarmony设备运行指导.html">
            
                <a href="5.7OpenHarmony设备运行指导.html">
            
                    
                    6.6OpenHarmony设备运行指导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="5.8现有项目支持鸿蒙.html">
            
                <a href="5.8现有项目支持鸿蒙.html">
            
                    
                    6.7现有Flutter项目支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="5.9鸿蒙版Flutter仓库变更.html">
            
                <a href="5.9鸿蒙版Flutter仓库变更.html">
            
                    
                    6.8鸿蒙版Flutter仓库变更
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.6.9" data-path="5.11使用fvm.html">
            
                <a href="5.11使用fvm.html">
            
                    
                    6.9使用FVM管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    7.在鸿蒙应用中添加Flutter页面
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" >
            
                <span>
            
                    
                    7.1如何使用 FlutterPage
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" >
            
                <span>
            
                    
                    7.2如何使用混合开发添加跳转 FlutterEntry
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" >
            
                <span>
            
                    
                    7.3 harmonyos添加flutter页面跳转时路由的处理
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                    8.在鸿蒙应用中使用Flutter Channel能力
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../chapter8/8.1如何使用Flutter与鸿蒙通信 FlutterChannel.html">
            
                <a href="../chapter8/8.1如何使用Flutter与鸿蒙通信 FlutterChannel.html">
            
                    
                    8.1如何使用Flutter与鸿蒙通信 FlutterChannel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../chapter8/8.4 混合渲染开发实践：以 fluttertpc_scan 三方库为例.html">
            
                <a href="../chapter8/8.4 混合渲染开发实践：以 fluttertpc_scan 三方库为例.html">
            
                    
                    8.4 混合渲染开发实践：以 fluttertpc_scan 三方库为例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    9.与原生混合渲染
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/Flutter OHOS外接纹理适配简介.md">
            
                    
                    9.1Flutter OHOS外接纹理适配简介.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用多引擎 FlutterEngineGroup.md">
            
                    
                    9.2如何使用多引擎 FlutterEngineGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用PlatformView.md">
            
                    
                    9.3如何使用PlatformView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/PlatformView同层渲染方案适配切换指导.md">
            
                    
                    9.4PlatformView同层渲染方案适配切换指导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" >
            
                <span>
            
                    
                    9.5如何使用混合开发 module
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <span>
            
                    
                    10.开发Flutter静态库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用混合开发 module.md">
            
                    
                    10.1开发module
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发package.md">
            
                    
                    10.2开发package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发plugin.md">
            
                    
                    10.3开发plugin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发FFI plugin.md">
            
                    
                    10.4开发FFI plugin
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <span>
            
                    
                    11.Packages使用指南
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../chapter11/11.1高效使用 Packages指南.html">
            
                <a href="../chapter11/11.1高效使用 Packages指南.html">
            
                    
                    11.1高效使用 Packages指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" >
            
                <span>
            
                    
                    11.2发布Packages
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <span>
            
                    
                    12.鸿蒙适配Flutter三方库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../chapter12/12.1纯dart库无需迁移.html">
            
                <a href="../chapter12/12.1纯dart库无需迁移.html">
            
                    
                    12.1纯dart库无需迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../chapter12/12.2坚果派已适配的库">
            
                <span>
            
                    
                    12.2坚果派目前适配三方库进展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../chapter12/12.3适配三方库之FlutterToast.html">
            
                <a href="../chapter12/12.3适配三方库之FlutterToast.html">
            
                    
                    12.3适配三方库之FlutterToast
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="../chapter12/12.4适配适配三方库之udid.md">
            
                <span>
            
                    
                    12.4适配三方库之udid
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="../chapter12/12.5适配torch_light.html">
            
                <a href="../chapter12/12.5适配torch_light.html">
            
                    
                    12.5适配torch_light.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="../chapter12/12.6适配flutter_native_contact_picker.html">
            
                <a href="../chapter12/12.6适配flutter_native_contact_picker.html">
            
                    
                    12.6适配flutter_native_contact_picker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="../chapter12/12.7适配flutter_timezone.html">
            
                <a href="../chapter12/12.7适配flutter_timezone.html">
            
                    
                    12.7适配flutter_timezone.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="../chapter12/12.8适配flutter_exit_app.html">
            
                <a href="../chapter12/12.8适配flutter_exit_app.html">
            
                    
                    12.8适配flutter_exit_app.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.9" data-path="../chapter12/12.9适配flutter_phone_direct_caller.html">
            
                <a href="../chapter12/12.9适配flutter_phone_direct_caller.html">
            
                    
                    12.9适配flutter_phone_direct_caller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.10" data-path="../chapter12/12.10适配flutter_app_icon_badge.html">
            
                <a href="../chapter12/12.10适配flutter_app_icon_badge.html">
            
                    
                    12.10适配flutter_app_icon_badge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.11" data-path="../chapter12/12.11适配memory_info.html">
            
                <a href="../chapter12/12.11适配memory_info.html">
            
                    
                    12.11适配memory_info
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" >
            
                <span>
            
                    
                    13.1DevTool使用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" >
            
                <span>
            
                    
                    13.1DevTool使用
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-delimitation.md">
            
                    
                    13.2性能分析定界(OpenHarmony平台)指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-threads-sequence.md">
            
                    
                    13.3性能分析第一步-梳理线程顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-frame-rendering-tracking.md">
            
                    
                    13.4性能分析-帧渲染跟踪
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-sliding-response-time.md">
            
                    
                    13.5性能分析-滑动响应时延
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../chapter12/12.6如何调试代码">
            
                <span>
            
                    
                    13.6如何调试代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" >
            
                <span>
            
                    
                    14.迁移实战
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" >
            
                <span>
            
                    
                    坚果驾考
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../chapter14/14.2使用url_launcher.html">
            
                <a href="../chapter14/14.2使用url_launcher.html">
            
                    
                    14.2使用url_launcher
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../chapter14/14.3flutter开发鸿蒙PC应用.html">
            
                <a href="../chapter14/14.3flutter开发鸿蒙PC应用.html">
            
                    
                    14.3flutter开发鸿蒙PC应用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" >
            
                <span>
            
                    
                    15.上架审核
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" >
            
                <span>
            
                    
                    16.FAQ
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/environment.md">
            
                    
                    16.1环境相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="../chapter16/16.3权限相关.html">
            
                <a href="../chapter16/16.3权限相关.html">
            
                    
                    16.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.3" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_engine.md">
            
                    
                    ohos引擎产物编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.4" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_hap.md">
            
                    
                    ohos应用编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.5" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_code.md">
            
                    
                    ohos代码开发相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.6" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_run.md">
            
                    
                    ohos运行相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.7" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/README.md">
            
                    
                    功能开发相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.8" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/flutter_cppcrash_guideline.md">
            
                    
                    解析flutter相关的cppcrash堆栈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" >
            
                <span>
            
                    
                    17.阅读更多
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" >
            
                <span>
            
                    
                    现有Flutter项目支持鸿蒙
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../chapter17/17.2平台判断与问题处理指南.html">
            
                <a href="../chapter17/17.2平台判断与问题处理指南.html">
            
                    
                    17.2平台判断与问题处理指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" >
            
                <span>
            
                    
                    18.关于未来
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" >
            
                <span>
            
                    
                    致谢
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >6.9使用FVM管理</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             
                <div id="vip-container">
                    <h2 id="&#x9E3F;&#x8499;&#x7248;flutter-&#x7248;&#x672C;&#x7BA1;&#x7406;&#x5229;&#x5668;&#xFF1A;fvm-&#x4F7F;&#x7528;&#x6307;&#x5357;"><a name="&#x9E3F;&#x8499;&#x7248;flutter-&#x7248;&#x672C;&#x7BA1;&#x7406;&#x5229;&#x5668;&#xFF1A;fvm-&#x4F7F;&#x7528;&#x6307;&#x5357;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x7248;flutter-&#x7248;&#x672C;&#x7BA1;&#x7406;&#x5229;&#x5668;&#xFF1A;fvm-&#x4F7F;&#x7528;&#x6307;&#x5357;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x7248;Flutter &#x7248;&#x672C;&#x7BA1;&#x7406;&#x5229;&#x5668;&#xFF1A;FVM &#x4F7F;&#x7528;&#x6307;&#x5357;</h2>
<h2 id="&#x4E00;&#x3001;fvm-&#x7B80;&#x4ECB;"><a name="&#x4E00;&#x3001;fvm-&#x7B80;&#x4ECB;" class="plugin-anchor" href="#&#x4E00;&#x3001;fvm-&#x7B80;&#x4ECB;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E00;&#x3001;FVM &#x7B80;&#x4ECB;</h2>
<p>FVM&#xFF08;Flutter Version Manager&#xFF09;&#x662F;&#x4E00;&#x4E2A;&#x4E13;&#x95E8;&#x4E3A; Flutter &#x5E94;&#x7528;&#x5F00;&#x53D1;&#x8BBE;&#x8BA1;&#x7684;&#x7248;&#x672C;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#x3002;&#x5B83;&#x5141;&#x8BB8;&#x5F00;&#x53D1;&#x8005;&#x5728;&#x540C;&#x4E00;&#x53F0;&#x673A;&#x5668;&#x4E0A;&#x5B89;&#x88C5;&#x548C;&#x7BA1;&#x7406;&#x591A;&#x4E2A; Flutter &#x7248;&#x672C;&#xFF0C;&#x89E3;&#x51B3;&#x4E86;&#x56E2;&#x961F;&#x534F;&#x4F5C;&#x548C;&#x9879;&#x76EE;&#x8FC1;&#x79FB;&#x65F6;&#x56E0; Flutter &#x7248;&#x672C;&#x5DEE;&#x5F02;&#x5BFC;&#x81F4;&#x7684;&#x517C;&#x5BB9;&#x6027;&#x95EE;&#x9898;&#x3002;&#x5B83;&#x5141;&#x8BB8;&#x5F00;&#x53D1;&#x8005;&#x5728;&#x4E0D;&#x540C;&#x7684; Flutter &#x9879;&#x76EE;&#x4E4B;&#x95F4;&#x5FEB;&#x901F;&#x5207;&#x6362;&#x7248;&#x672C;&#xFF0C;&#x800C;&#x65E0;&#x9700;&#x6BCF;&#x6B21;&#x90FD;&#x4E0B;&#x8F7D;&#x548C;&#x914D;&#x7F6E;&#x65B0;&#x7684; Flutter SDK</p>
<p>&#x5B98;&#x65B9;&#x7F51;&#x7AD9;: <a href="https://fvm.app/" target="_blank">fvm.app</a></p>
<h2 id="&#x4E8C;&#x3001;fvm-&#x7684;&#x6838;&#x5FC3;&#x529F;&#x80FD;"><a name="&#x4E8C;&#x3001;fvm-&#x7684;&#x6838;&#x5FC3;&#x529F;&#x80FD;" class="plugin-anchor" href="#&#x4E8C;&#x3001;fvm-&#x7684;&#x6838;&#x5FC3;&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E8C;&#x3001;FVM &#x7684;&#x6838;&#x5FC3;&#x529F;&#x80FD;</h2>
<ul>
<li><strong>&#x591A;&#x7248;&#x672C;&#x7BA1;&#x7406;</strong> &#xFF1A;&#x652F;&#x6301;&#x5B89;&#x88C5;&#x7BA1;&#x7406;&#x591A;&#x79CD; Flutter SDK &#x7248;&#x672C;&#xFF0C;&#x5305;&#x62EC;&#x7A33;&#x5B9A;&#x7248;&#x3001;Beta &#x7248;&#x3001;Dev &#x7248;&#x53CA;&#x81EA;&#x5B9A;&#x4E49;&#x7248;&#x672C;&#xFF0C;&#x4F9D;&#x9879;&#x76EE;&#x9700;&#x6C42;&#x5FEB;&#x901F;&#x5207;&#x6362;&#x3002;</li>
<li><strong>&#x7248;&#x672C;&#x9694;&#x79BB;</strong> &#xFF1A;&#x4E3A;&#x6BCF;&#x4E2A;&#x9879;&#x76EE;&#x521B;&#x5EFA;&#x72EC;&#x7ACB; Flutter &#x73AF;&#x5883;&#xFF0C;&#x4F7F;&#x4E0D;&#x540C;&#x9879;&#x76EE;&#x4F7F;&#x7528;&#x7684;&#x7248;&#x672C;&#x4E92;&#x4E0D;&#x5E72;&#x6270;&#xFF0C;&#x4FBF;&#x4E8E;&#x7EF4;&#x62A4;&#x591A;&#x7248;&#x672C;&#x9879;&#x76EE;&#x3002;</li>
<li><strong>&#x56E2;&#x961F;&#x534F;&#x4F5C;&#x652F;&#x6301;</strong> &#xFF1A;&#x56E2;&#x961F;&#x6210;&#x5458;&#x7528;&#x76F8;&#x540C;&#x7248;&#x672C;&#x5F00;&#x53D1;&#xFF0C;&#x907F;&#x514D;&#x7248;&#x672C;&#x4E0D;&#x4E00;&#x81F4;&#x81F4;&#x9519;&#xFF0C;&#x6307;&#x5B9A;&#x9879;&#x76EE;&#x9700;&#x7528;&#x7248;&#x672C;&#xFF0C;&#x6210;&#x5458;&#x6613;&#x590D;&#x73B0;&#x73AF;&#x5883;&#x3002;</li>
<li><strong>&#x5168;&#x5C40;&#x4E0E;&#x9879;&#x76EE;&#x7EA7;&#x914D;&#x7F6E;</strong> &#xFF1A;&#x65E2;&#x80FD;&#x8BBE;&#x5168;&#x5C40;&#x9ED8;&#x8BA4; Flutter &#x7248;&#x672C;&#xFF0C;&#x53C8;&#x80FD;&#x4E3A;&#x7279;&#x5B9A;&#x9879;&#x76EE;&#x8BBE;&#x4E13;&#x7528;&#x7248;&#x672C;&#xFF0C;&#x63D0;&#x4F9B;&#x7075;&#x6D3B;&#x914D;&#x7F6E;&#x3002;</li>
<li><strong>&#x901A;&#x9053;&#x7BA1;&#x7406;</strong> &#xFF1A;&#x652F;&#x6301; Flutter &#x7684;&#x7A33;&#x5B9A;&#x3001;&#x6D4B;&#x8BD5;&#x548C;&#x5F00;&#x53D1;&#x901A;&#x9053;&#x3002;</li>
<li><strong>&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;</strong> &#xFF1A;&#x63D0;&#x4F9B;&#x4E30;&#x5BCC;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#xFF0C;&#x5982;&#x67E5;&#x770B;&#x7248;&#x672C;&#x3001;&#x5B89;&#x88C5;&#x3001;&#x8BBE;&#x7F6E;&#x5168;&#x5C40;&#x7248;&#x672C;&#x3001;&#x9879;&#x76EE;&#x5185;&#x7528;&#x7279;&#x5B9A;&#x7248;&#x672C;&#x3001;&#x67E5;&#x770B;&#x5DF2;&#x88C5;&#x7248;&#x672C;&#x3001;&#x79FB;&#x9664;&#x7248;&#x672C;&#x3001;&#x6E05;&#x7406;&#x7F13;&#x5B58;&#x7B49;&#x3002;</li>
<li><strong>&#x7F13;&#x5B58;&#x7BA1;&#x7406;</strong> &#xFF1A;&#x7F13;&#x5B58;&#x5DF2;&#x4E0B;&#x8F7D;&#x7684; Flutter SDK &#x7248;&#x672C;&#xFF0C;&#x51CF;&#x5C11;&#x91CD;&#x590D;&#x4E0B;&#x8F7D;&#x3002;</li>
</ul>
<h2 id="&#x4E09;&#x3001;fvm-&#x7684;&#x4F18;&#x52BF;"><a name="&#x4E09;&#x3001;fvm-&#x7684;&#x4F18;&#x52BF;" class="plugin-anchor" href="#&#x4E09;&#x3001;fvm-&#x7684;&#x4F18;&#x52BF;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E09;&#x3001;FVM &#x7684;&#x4F18;&#x52BF;</h2>
<ul>
<li><strong>&#x63D0;&#x9AD8;&#x5F00;&#x53D1;&#x6548;&#x7387;</strong> &#xFF1A;&#x5FEB;&#x901F;&#x5207;&#x6362;&#x7248;&#x672C;&#xFF0C;&#x51CF;&#x5C11;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x65F6;&#x95F4;&#xFF0C;&#x4F7F;&#x5F00;&#x53D1;&#x8005;&#x4E13;&#x6CE8;&#x4E1A;&#x52A1;&#x903B;&#x8F91;&#x5B9E;&#x73B0;&#x3002;</li>
<li><strong>&#x964D;&#x4F4E;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x590D;&#x6742;&#x5EA6;</strong> &#xFF1A;&#x81EA;&#x52A8;&#x7BA1;&#x7406; SDK &#x4E0B;&#x8F7D;&#x3001;&#x5B89;&#x88C5;&#x548C;&#x5207;&#x6362;&#xFF0C;&#x7B80;&#x5316;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x642D;&#x5EFA;&#x3002;</li>
<li><strong>&#x589E;&#x5F3A;&#x9879;&#x76EE;&#x53EF;&#x79FB;&#x690D;&#x6027;</strong> &#xFF1A;&#x9879;&#x76EE;&#x7ED1;&#x5B9A;&#x7279;&#x5B9A;&#x7248;&#x672C;&#xFF0C;&#x786E;&#x4FDD;&#x4E0D;&#x540C;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E2D;&#x7684;&#x4E00;&#x81F4;&#x6027;&#x3002;</li>
<li><strong>&#x652F;&#x6301; CI/CD &#x96C6;&#x6210;</strong> &#xFF1A;&#x65E0;&#x7F1D;&#x96C6;&#x6210;&#x5230;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x548C;&#x6301;&#x7EED;&#x90E8;&#x7F72;&#x6D41;&#x7A0B;&#xFF0C;&#x4FDD;&#x8BC1;&#x81EA;&#x52A8;&#x5316;&#x6784;&#x5EFA;&#x7A33;&#x5B9A;&#x6027;&#x3002;</li>
</ul>
<p>fvm list&#x6E05;&#x695A;&#x672C;&#x6B21;&#x7F13;&#x5B58;&#x76EE;&#x5F55;&#x540E;</p>
<p>&#x5C31;&#x5728;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x6267;&#x884C;&#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;</p>
<pre><code>fvm list
Cache directory:  /Users/jianguo/fvm/versions
Directory Size: 0 B

No SDKs have been installed yet. Flutter. SDKs
installed outside of fvm will not be displayed.
</code></pre><p>&#x6CA1;&#x6709;&#x76EE;&#x5F55;&#x5219;&#x521B;&#x5EFA;&#x3002;</p>
<pre><code> mkdir  /Users/jianguo/fvm/versions
</code></pre><h2 id="&#x56DB;&#x3001;fvm-&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;"><a name="&#x56DB;&#x3001;fvm-&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;" class="plugin-anchor" href="#&#x56DB;&#x3001;fvm-&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x56DB;&#x3001;FVM &#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;</h2>
<h3 id="&#xFF08;&#x4E00;&#xFF09;&#x5B89;&#x88C5;-fvm"><a name="&#xFF08;&#x4E00;&#xFF09;&#x5B89;&#x88C5;-fvm" class="plugin-anchor" href="#&#xFF08;&#x4E00;&#xFF09;&#x5B89;&#x88C5;-fvm"><i class="fa fa-link" aria-hidden="true"></i></a>&#xFF08;&#x4E00;&#xFF09;&#x5B89;&#x88C5; FVM</h3>
<ol>
<li><p><strong>&#x4F7F;&#x7528; Homebrew&#xFF08;macOS&#xFF09;</strong></p>
<pre><code class="lang-bash">brew install fvm
</code></pre>
</li>
<li><p><strong>&#x4F7F;&#x7528; Chocolatey&#xFF08;Windows&#xFF09;</strong></p>
<pre><code class="lang-powershell">choco install fvm
</code></pre>
</li>
<li><p><strong>&#x4F7F;&#x7528;&#x5305;&#x7BA1;&#x7406;&#x5668;&#xFF08;Linux&#xFF09;</strong></p>
<pre><code class="lang-bash">sudo snap install fvm
</code></pre>
</li>
<li><p><strong>&#x4ECE;&#x6E90;&#x7801;&#x5B89;&#x88C5;</strong>
&#x514B;&#x9686; FVM &#x4ED3;&#x5E93;&#x5E76;&#x624B;&#x52A8;&#x5B89;&#x88C5;&#xFF1A;</p>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> https://github.com/leoafarias/fvm.git
<span class="hljs-built_in">cd</span> fvm
 dart pub global activate --source path .
</code></pre>
</li>
</ol>
<h3 id="&#xFF08;&#x4E8C;&#xFF09;&#x914D;&#x7F6E;-fvm"><a name="&#xFF08;&#x4E8C;&#xFF09;&#x914D;&#x7F6E;-fvm" class="plugin-anchor" href="#&#xFF08;&#x4E8C;&#xFF09;&#x914D;&#x7F6E;-fvm"><i class="fa fa-link" aria-hidden="true"></i></a>&#xFF08;&#x4E8C;&#xFF09;&#x914D;&#x7F6E; FVM</h3>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x521D;&#x59CB;&#x5316; FVM&#xFF1A;</p>
<pre><code class="lang-bash">fvm doctor
</code></pre>
<p>&#x8BE5;&#x547D;&#x4EE4;&#x4F1A;&#x68C0;&#x67E5; FVM &#x7684;&#x914D;&#x7F6E;&#x72B6;&#x6001;&#xFF0C;&#x5E76;&#x63D0;&#x793A;&#x662F;&#x5426;&#x9700;&#x8981;&#x66F4;&#x65B0;&#x6216;&#x4FEE;&#x590D;&#x3002;</p>
<h3 id="&#xFF08;&#x4E09;&#xFF09;&#x66F4;&#x65B0;-fvm"><a name="&#xFF08;&#x4E09;&#xFF09;&#x66F4;&#x65B0;-fvm" class="plugin-anchor" href="#&#xFF08;&#x4E09;&#xFF09;&#x66F4;&#x65B0;-fvm"><i class="fa fa-link" aria-hidden="true"></i></a>&#xFF08;&#x4E09;&#xFF09;&#x66F4;&#x65B0; FVM</h3>
<p>&#x8FD0;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x66F4;&#x65B0; FVM&#xFF1A;</p>
<pre><code class="lang-bash">dart pub global activate fvm
</code></pre>
<h2 id="&#x4E94;&#x3001;&#x914D;&#x7F6E;3221"><a name="&#x4E94;&#x3001;&#x914D;&#x7F6E;3221" class="plugin-anchor" href="#&#x4E94;&#x3001;&#x914D;&#x7F6E;3221"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E94;&#x3001;&#x914D;&#x7F6E;3.22.1</h2>
<p>&#x4F7F;&#x7528;&#x7279;&#x5B9A;&#x7248;&#x672C;3.22.1</p>
<pre><code>git clone --branch 3.22.0-ohos git@gitcode.com:openharmony-sig/flutter_flutter.git  custom_3.22.1
</code></pre><h2 id="&#x516D;&#x3001;&#x914D;&#x7F6E;3712"><a name="&#x516D;&#x3001;&#x914D;&#x7F6E;3712" class="plugin-anchor" href="#&#x516D;&#x3001;&#x914D;&#x7F6E;3712"><i class="fa fa-link" aria-hidden="true"></i></a>&#x516D;&#x3001;&#x914D;&#x7F6E;3.7.12</h2>
<p>&#x4F7F;&#x7528;&#x7279;&#x5B9A;&#x7248;&#x672C;3.7.12</p>
<pre><code>git clone --branch br_3.7.12-ohos-1.1.0 git@gitcode.com:openharmony-sig/flutter_flutter.git  custom_3.22.1
</code></pre><pre><code>jianguo@nutpi versions % fvm list
Cache directory:  /Users/jianguo/fvm/versions
Directory Size: 1.87 GB

&#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
&#x2502; Version       &#x2502; Channel &#x2502; Flutter Version &#x2502; Dart Version &#x2502; Release Date &#x2502; Global &#x2502; Local &#x2502;
&#x251C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2524;
&#x2502; custom_3.22.1 &#x2502;         &#x2502; Need setup      &#x2502;              &#x2502;              &#x2502;        &#x2502;       &#x2502;
&#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;

jianguo@nutpi versions % fvm use &#x2502; custom_3.22.1
Creating local mirror...
^C
jianguo@nutpi versions % fvm use custom_3.22.1 
[WARN] Not checking for version mismatch as custom version is being used.

No pubspec.yaml detected in this directory
&#x2714; Would you like to continue? &#xB7; yes                                                                            Downloading Darwin arm64 Dart SDK from Flutter engine 2d7bb04571c712838a076cd26a74455d6a91d42e...
dart-sdk-url: https://flutter-ohos.obs.cn-south-1.myhuaweicloud.com/flutter_infra_release/flutter/2d7bb04571c712838a076cd26a74455d6a91d42e/dart-sdk-darwin-arm64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  122M  100  122M    0     0  1548k      0  0:01:21  0:01:21 --:--:-- 1416k
Building flutter tool...
Resolving dependencies... (1.4s)
Downloading packages... 
Got dependencies.
Flutter 3.22.1-ohos-1.0.0 &#x2022; channel [user-branch] &#x2022; git@gitcode.com:openharmony-sig/flutter_flutter.git
Framework &#x2022; revision b4fecf02f5 (4 days ago) &#x2022; 2025-05-08 11:47:56 +0800
Engine &#x2022; revision f6344b75dc
Tools &#x2022; Dart 3.4.0 &#x2022; DevTools 2.34.1
</code></pre><p>&#x4E0B;&#x8F7D;&#x5B8C;sdk&#x540E;</p>
<p>fvm use custom_3.22.1&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x8BDD;&#xFF0C;&#x91CD;&#x65B0;&#x8FD0;&#x884C;fvm list&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5C31;&#x5982;&#x4E0B;&#x9762;&#x6240;&#x793A;&#x3002;</p>
<pre><code>jianguo@nutpi versions % fvm list
Cache directory:  /Users/jianguo/fvm/versions
Directory Size: 2.27 GB

&#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x252C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
&#x2502; Version       &#x2502; Channel &#x2502; Flutter Version   &#x2502; Dart Version &#x2502; Release Date &#x2502; Global &#x2502; Local &#x2502;
&#x251C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x253C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2524;
&#x2502; custom_3.22.1 &#x2502;         &#x2502; 3.22.1-ohos-1.0.0 &#x2502; 3.4.0        &#x2502;              &#x2502;        &#x2502;       &#x2502;
&#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2534;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;
</code></pre><p><img src="https://nutpi-e41b.obs.cn-north-4.myhuaweicloud.com/image-20250512093850169.png" alt="image-20250512093850169"></p>
<h2 id="&#x4E03;&#x3001;&#x4F7F;&#x7528;-sdk"><a name="&#x4E03;&#x3001;&#x4F7F;&#x7528;-sdk" class="plugin-anchor" href="#&#x4E03;&#x3001;&#x4F7F;&#x7528;-sdk"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E03;&#x3001;&#x4F7F;&#x7528; SDK</h2>
<p>SDK &#x4E0B;&#x8F7D;&#x5230;&#x7F13;&#x5B58;&#x76EE;&#x5F55;&#x4EE5;&#x540E;, &#x53EF;&#x7528; FVM &#x6765;&#x521B;&#x5EFA;&#x9879;&#x76EE;</p>
<p>&#x793A;&#x4F8B;:</p>
<pre><code class="lang-shell">

# &#x4F7F;&#x7528;&#x81EA;&#x5B9A;&#x4E49; SDK
# &#x7531;&#x4E8E;&#x6B64;&#x65F6;&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x662F;&#x7A7A;&#x7684;&#xFF0C;&#x53EF;&#x80FD;&#x4F1A;&#x63D0;&#x793A;&#x662F;&#x5426;&#x7EE7;&#x7EED;, &#x4E00;&#x8DEF; yes &#x5373;&#x53EF;
fvm use custom_3.22.1

# &#x521B;&#x5EFA;&#x9879;&#x76EE;, &#x4E0D;&#x8981;&#x5FFD;&#x7565;&#x6700;&#x540E;&#x7684;&#x90A3;&#x4E2A; &quot;.&quot; &#x54E6;
fvm flutter create --platforms=ohos --project-name demo .
</code></pre>
<h3 id="ide--&#x7F16;&#x8F91;&#x5668;&#x914D;&#x7F6E;"><a name="ide--&#x7F16;&#x8F91;&#x5668;&#x914D;&#x7F6E;" class="plugin-anchor" href="#ide--&#x7F16;&#x8F91;&#x5668;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>IDE / &#x7F16;&#x8F91;&#x5668;&#x914D;&#x7F6E;</h3>
<p>&#x521B;&#x5EFA;&#x4EE5;&#x540E;, &#x76EE;&#x5F55;&#x4E2D;&#x4F1A;&#x51FA;&#x73B0; <code>.fvm</code>(&#x8F6F;&#x94FE;&#x63A5;&#x5230; SDK &#x5B9E;&#x9645;&#x4F4D;&#x7F6E;) &#x548C; <code>.fvmrc</code>(&#x914D;&#x7F6E;&#x6587;&#x4EF6;)</p>
<p>&#x6267;&#x884C; <code>tree -L 2 .fvm</code> (&#x4EC5;&#x53C2;&#x8003;)</p>
<pre><code class="lang-md">.fvm
&#x251C;&#x2500;&#x2500; flutter<span class="hljs-emphasis">_sdk -&gt; /Users/jianguo/fvm/versions/custom_</span>3.22.1
&#x251C;&#x2500;&#x2500; fvm_config.json
&#x251C;&#x2500;&#x2500; release
&#x251C;&#x2500;&#x2500; version
&#x2514;&#x2500;&#x2500; versions
<span class="hljs-code">    &#x2514;&#x2500;&#x2500; custom_3.22.1 -&gt; /Users/jianguo/fvm/versions/custom_3.22.1</span>

4 directories, 3 files
</code></pre>
<p>&#x53EF;&#x53D1;&#x73B0;, &#x5176;&#x4E2D; <code>.fvm/flutter_sdk</code> &#x548C; <code>.fvm/versions</code> &#x4E0B;&#x7684;&#x6587;&#x4EF6;&#x5747;&#x8F6F;&#x94FE;&#x63A5;&#x5230; SDK &#x5B9E;&#x9645;&#x7F13;&#x5B58;&#x4F4D;&#x7F6E;, &#x590D;&#x7528;</p>
<h3 id="vscode"><a name="vscode" class="plugin-anchor" href="#vscode"><i class="fa fa-link" aria-hidden="true"></i></a>VSCode</h3>
<p>&#x5728;&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x4E0B;&#x7684; <code>.vscode/settings.json</code> &#x91CC;&#x914D;&#x7F6E; SDK &#x4F4D;&#x7F6E;&#x5373;&#x53EF;&#xFF0C;&#x793A;&#x4F8B;&#x5982;&#x4E0B;</p>
<pre><code class="lang-json5">{
  &quot;dart.flutterSdkPath&quot;: &quot;.fvm/versions/custom_3.22.1&quot;, # &#x4E5F;&#x53EF;&#x4EE5;&#x662F; `.fvm/flutter_sdk`
  &quot;dart.addSdkToTerminalPath&quot;: true, # &#x8868;&#x793A;&#x5C06;&#x5F53;&#x524D; SDK &#x6DFB;&#x52A0;&#x5230; VSCode &#x96C6;&#x6210;&#x7EC8;&#x7AEF;&#x7684; PATH
  &quot;dart.env&quot;: {
    &quot;PUB_HOSTED_URL&quot;: &quot;https://pub.flutter-io.cn&quot; # &#x6839;&#x636E;&#x60C5;&#x51B5;&#x8BBE;&#x7F6E;(&#x56FD;&#x5185;&#x63A8;&#x8350;)
  },
}
</code></pre>
<h2 id="&#x516B;&#x3001;&#x603B;&#x7ED3;"><a name="&#x516B;&#x3001;&#x603B;&#x7ED3;" class="plugin-anchor" href="#&#x516B;&#x3001;&#x603B;&#x7ED3;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x516B;&#x3001;&#x603B;&#x7ED3;</h2>
<p>FVM &#x662F; Flutter &#x5F00;&#x53D1;&#x8005;&#x4E0D;&#x53EF;&#x6216;&#x7F3A;&#x7684;&#x5DE5;&#x5177;&#xFF0C;&#x5B83;&#x6781;&#x5927;&#x7B80;&#x5316;&#x4E86; Flutter &#x7248;&#x672C;&#x7BA1;&#x7406;&#x7684;&#x590D;&#x6742;&#x6027;&#xFF0C;&#x63D0;&#x9AD8;&#x4E86;&#x56E2;&#x961F;&#x534F;&#x4F5C;&#x6548;&#x7387;&#x3002;&#x65E0;&#x8BBA;&#x662F;&#x4E2A;&#x4EBA;&#x5F00;&#x53D1;&#x8005;&#x8FD8;&#x662F;&#x5927;&#x578B;&#x56E2;&#x961F;&#xFF0C;FVM &#x90FD;&#x80FD;&#x63D0;&#x4F9B;&#x5F3A;&#x5927;&#x7684;&#x652F;&#x6301;&#x3002;&#x5982;&#x679C;&#x4F60;&#x8FD8;&#x672A;&#x4F7F;&#x7528; FVM&#xFF0C;&#x73B0;&#x5728;&#x5C31;&#x662F;&#x5F00;&#x59CB;&#x7684;&#x6700;&#x4F73;&#x65F6;&#x673A;&#xFF01;</p>
<p>&#x5E0C;&#x671B;&#x8FD9;&#x7BC7;&#x535A;&#x5BA2;&#x80FD;&#x5E2E;&#x52A9;&#x4F60;&#x8F7B;&#x677E;&#x638C;&#x63E1; FVM &#x7684;&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#xFF0C;&#x8BA9; Flutter &#x5F00;&#x53D1;&#x53D8;&#x5F97;&#x66F4;&#x52A0;&#x9AD8;&#x6548;&#x548C;&#x987A;&#x7545;&#x3002;</p>
<p>&#x5982;&#x679C;&#x6CA1;&#x6709;&#x627E;&#x5230;<code>.vscode/settings.json</code>&#x6587;&#x4EF6;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x6309;&#x7167;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#x521B;&#x5EFA;&#x5E76;&#x914D;&#x7F6E;&#x5B83;&#xFF1A;</p>
<h3 id="&#x521B;&#x5EFA;vscode&#x76EE;&#x5F55;&#x548C;settingsjson&#x6587;&#x4EF6;"><a name="&#x521B;&#x5EFA;vscode&#x76EE;&#x5F55;&#x548C;settingsjson&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x521B;&#x5EFA;vscode&#x76EE;&#x5F55;&#x548C;settingsjson&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x521B;&#x5EFA;<code>.vscode</code>&#x76EE;&#x5F55;&#x548C;<code>settings.json</code>&#x6587;&#x4EF6;</h3>
<ol>
<li><strong>&#x6253;&#x5F00;&#x9879;&#x76EE;&#x76EE;&#x5F55;</strong>&#xFF1A;&#x5728; VSCode &#x4E2D;&#x6253;&#x5F00;&#x4F60;&#x7684;&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x3002;</li>
<li><strong>&#x521B;&#x5EFA;<code>.vscode</code>&#x76EE;&#x5F55;</strong>&#xFF1A;&#x5982;&#x679C;&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x4E0B;&#x6CA1;&#x6709;<code>.vscode</code>&#x76EE;&#x5F55;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x624B;&#x52A8;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x540D;&#x4E3A;<code>.vscode</code>&#x7684;&#x6587;&#x4EF6;&#x5939;&#x3002;</li>
<li><strong>&#x521B;&#x5EFA;<code>settings.json</code>&#x6587;&#x4EF6;</strong>&#xFF1A;&#x5728;<code>.vscode</code>&#x76EE;&#x5F55;&#x4E0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x540D;&#x4E3A;<code>settings.json</code>&#x7684;&#x6587;&#x4EF6;&#x3002;</li>
</ol>
<h3 id="&#x914D;&#x7F6E;settingsjson&#x6587;&#x4EF6;"><a name="&#x914D;&#x7F6E;settingsjson&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x914D;&#x7F6E;settingsjson&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x914D;&#x7F6E;<code>settings.json</code>&#x6587;&#x4EF6;</h3>
<p>&#x5728;<code>settings.json</code>&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x6DFB;&#x52A0;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#x6765;&#x914D;&#x7F6E; SDK &#x8DEF;&#x5F84;&#xFF1A;</p>
<pre><code class="lang-json">{
  <span class="hljs-string">&quot;dart.flutterSdkPath&quot;</span>: <span class="hljs-string">&quot;.fvm/versions/custom_3.22.1&quot;</span>,
  <span class="hljs-string">&quot;dart.addSdkToTerminalPath&quot;</span>: <span class="hljs-literal">true</span>,
  <span class="hljs-string">&quot;dart.env&quot;</span>: {
    <span class="hljs-string">&quot;PUB_HOSTED_URL&quot;</span>: <span class="hljs-string">&quot;https://pub.flutter-io.cn&quot;</span>
  }
}
</code></pre>
<h3 id="&#x89E3;&#x91CA;&#x914D;&#x7F6E;&#x9879;"><a name="&#x89E3;&#x91CA;&#x914D;&#x7F6E;&#x9879;" class="plugin-anchor" href="#&#x89E3;&#x91CA;&#x914D;&#x7F6E;&#x9879;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x89E3;&#x91CA;&#x914D;&#x7F6E;&#x9879;</h3>
<ul>
<li><code>dart.flutterSdkPath</code>&#xFF1A;&#x6307;&#x5B9A; Flutter SDK &#x7684;&#x8DEF;&#x5F84;&#x3002;&#x8FD9;&#x91CC;&#x4F7F;&#x7528;<code>.fvm/versions/custom_3.22.1</code>&#xFF0C;&#x8FD9;&#x662F; FVM &#x7BA1;&#x7406;&#x7684; Flutter SDK &#x7684;&#x8DEF;&#x5F84;&#x3002;</li>
<li><code>dart.addSdkToTerminalPath</code>&#xFF1A;&#x5C06;&#x5F53;&#x524D;&#x9879;&#x76EE;&#x7684; Flutter SDK &#x6DFB;&#x52A0;&#x5230; VSCode &#x96C6;&#x6210;&#x7EC8;&#x7AEF;&#x7684; PATH &#x73AF;&#x5883;&#x53D8;&#x91CF;&#x4E2D;&#xFF0C;&#x8FD9;&#x6837;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x7EC8;&#x7AEF;&#x4E2D;&#x76F4;&#x63A5;&#x4F7F;&#x7528; Flutter &#x547D;&#x4EE4;&#x3002;</li>
<li><code>dart.env</code>&#xFF1A;&#x8BBE;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF0C;&#x8FD9;&#x91CC;&#x914D;&#x7F6E;&#x4E86;<code>PUB_HOSTED_URL</code>&#x4E3A;&#x56FD;&#x5185;&#x7684;&#x955C;&#x50CF;&#x5730;&#x5740;&#xFF0C;&#x53EF;&#x4EE5;&#x52A0;&#x5FEB;&#x5305;&#x7684;&#x4E0B;&#x8F7D;&#x901F;&#x5EA6;&#x3002;</li>
</ul>
<h3 id="&#x793A;&#x4F8B;"><a name="&#x793A;&#x4F8B;" class="plugin-anchor" href="#&#x793A;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x793A;&#x4F8B;</h3>
<p>&#x4EE5;&#x4E0B;&#x662F;&#x4E00;&#x4E2A;&#x5B8C;&#x6574;&#x7684;&#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-json">{
  <span class="hljs-string">&quot;dart.flutterSdkPath&quot;</span>: <span class="hljs-string">&quot;.fvm/versions/custom_3.22.1&quot;</span>,
  <span class="hljs-string">&quot;dart.addSdkToTerminalPath&quot;</span>: <span class="hljs-literal">true</span>,
  <span class="hljs-string">&quot;dart.env&quot;</span>: {
    <span class="hljs-string">&quot;PUB_HOSTED_URL&quot;</span>: <span class="hljs-string">&quot;https://pub.flutter-io.cn&quot;</span>
  }
}
</code></pre>
<h3 id="&#x9A8C;&#x8BC1;&#x914D;&#x7F6E;"><a name="&#x9A8C;&#x8BC1;&#x914D;&#x7F6E;" class="plugin-anchor" href="#&#x9A8C;&#x8BC1;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9A8C;&#x8BC1;&#x914D;&#x7F6E;</h3>
<p>&#x5B8C;&#x6210;&#x914D;&#x7F6E;&#x540E;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#x9A8C;&#x8BC1;&#x914D;&#x7F6E;&#x662F;&#x5426;&#x6B63;&#x786E;&#xFF1A;</p>
<ol>
<li><strong>&#x6253;&#x5F00; VSCode &#x96C6;&#x6210;&#x7EC8;&#x7AEF;</strong>&#xFF1A;&#x6309;&#x4E0B; `Ctrl + ``&#xFF08;&#x53CD;&#x5F15;&#x53F7;&#xFF09;&#x6253;&#x5F00;&#x7EC8;&#x7AEF;&#x3002;</li>
<li><strong>&#x8FD0;&#x884C; Flutter &#x547D;&#x4EE4;</strong>&#xFF1A;&#x8F93;&#x5165;<code>flutter --version</code>&#xFF0C;&#x68C0;&#x67E5;&#x662F;&#x5426;&#x663E;&#x793A;&#x7684;&#x662F;&#x4F60;&#x914D;&#x7F6E;&#x7684; Flutter &#x7248;&#x672C;&#x3002;</li>
</ol>
<p>&#x5982;&#x679C;&#x663E;&#x793A;&#x7684;&#x7248;&#x672C;&#x4E0E;&#x4F60;&#x914D;&#x7F6E;&#x7684;&#x7248;&#x672C;&#x4E00;&#x81F4;&#xFF0C;&#x8BF4;&#x660E;&#x914D;&#x7F6E;&#x6210;&#x529F;&#x3002; </p>
<footer class="page-footer"><span class="copyright">powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2025-05-13 07:16:02
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                </div>
                <script src="https://my.openwrite.cn/js/readmore.js"></script>
                <script>
                    var enablePlugin = false;
                    var allowDomain = "localhost";
                    if(allowDomain){
                        var currentDomain = location.hostname;
                        if ($.isArray(allowDomain)) {
                            $.each(allowDomain, function(index, item) {
                                if (currentDomain == item) {
                                    enablePlugin = true;
                                    return false;
                                }
                            });
                        }else{
                           if (currentDomain == allowDomain) {
                                enablePlugin = true;
                            }
                        }
                    }else{
                        enablePlugin = true;
                    }
                    
                    if(enablePlugin){
                        var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
                        if (!isMobile) {
                            var btw = new BTWPlugin();
                            btw.init({"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果","id":"vip-container"});
                        }
                    }
                </script> 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div></div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

     
    <a
      href="5.9鸿蒙版Flutter仓库变更.html"
      class="
        navigation navigation-prev
        navigation-unique
      "
      aria-label="Previous page: 6.8鸿蒙版Flutter仓库变更"
    >
      <i class="fa fa-angle-left"></i>
    </a>
       
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"6.9使用FVM管理","level":"1.6.9","depth":2,"next":{"title":"7.在鸿蒙应用中添加Flutter页面","level":"1.7","depth":1,"ref":"","articles":[{"title":"7.1如何使用 FlutterPage","level":"1.7.1","depth":2,"ref":"","articles":[]},{"title":"7.2如何使用混合开发添加跳转 FlutterEntry","level":"1.7.2","depth":2,"ref":"","articles":[]},{"title":"7.3 harmonyos添加flutter页面跳转时路由的处理","level":"1.7.3","depth":2,"ref":"","articles":[]}]},"previous":{"title":"6.8鸿蒙版Flutter仓库变更","level":"1.6.8","depth":2,"path":"chapter5/5.9鸿蒙版Flutter仓库变更.md","ref":"./chapter5/5.9鸿蒙版Flutter仓库变更.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github-buttons@2.1.0","edit-link","splitter","tbfed-pagefooter","expandable-chapters","chapter-fold","back-to-top-button","code","pageview-count","popup","search-plus","-lunr","-search","splitter","-sharing","sharing-plus","theme-lou","mind-maps","emphasize","anchors","changyan","readmore","livereload","ace","livereload"],"root":".","styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"expandable-chapters":{}},"emphasize":{},"ace":{},"livereload":{},"splitter":{},"readmore":{"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link",".summary .divider"],"color":"#FF4848","book-anchor-title":"本章目录","copyright":{"author":"vx:nut_pie"},"forbidCopy":true,"logo":"assets/avatar.png","book-summary-title":"文章目录","search-placeholder":"输入关键字搜索","copyrightLogo":"assets/copyright.png","favicon":"assets/avatar.png","appleTouchIconPrecomposed152":"assets/avatar.png"},"changyan":{"appid":"cyvHoCPAs","conf":"0440cfc4168ba95d73cfc52dd4d5c60b"},"fontsettings":{"theme":"white","family":"sans","size":2},"mind-maps":{},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"},"sharing":{"qq":false,"all":["qq","qzone","whatsapp","douban","facebook","google","instapaper","linkedin","messenger","twitter","weibo"],"douban":false,"facebook":false,"weibo":false,"twitter":false,"pocket":false,"google":false,"qzone":false},"edit-link":{"label":"编辑此页","base":"https://github.com/ITmxs/gitbook/edit/master/"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"坚果派","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.gitbook.com/","name":"坚果派官网"},{"target":"_blank","url":"https://www.npmjs.com/package/package","name":"ArkUI实战"},{"target":"_blank","url":"https://space.bilibili.com/480883651","name":"元服务开发实践"},{"target":"_blank","url":"https://blog.51cto.com/jianguo","name":"OpenHarmony应用开发"}],"footer":{"donate":{"wechat":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","message":"随意打赏，但不要超过一顿早餐钱 💕","wxpay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","alipay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png","nickname":"breeze","button":"打赏","wechatText":"微信","alipayText":"支付宝","title":"『赠人玫瑰 🌹 手有余香 』","avatar":"http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"},"copyright":true}}},"title":"Flutter for Harmony教程","language":"zh-hans","gitbook":"*","description":"Flutter for Harmony电子书教程"},"file":{"path":"chapter5/5.11使用fvm.md","mtime":"2025-05-12T23:16:02.067Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-05-22T05:24:30.737Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mind-maps/mindmaps.dist.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-changyan/changyan.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

